<template>
  <div id="app">
    <router-view />
    <theme-picker />
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";
import watermark from "@/utils/water.js";
export default {
  name: "App",
  components: { ThemePicker ,watermark},
    metaInfo() {
        return {
            title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
            titleTemplate: title => {
                return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
            }
        }
    },
  mounted() { //刷新之后不显示水印
    this.$nextTick(() => {
      watermark.set(localStorage.getItem("username"),"赢时胜报表世界数据管理平台")
  })
  }
};
</script>
<style scoped>
#app .theme-picker {
  display: none;
}
 #water {
   position: fixed;
   inset: 0;
   overflow: hidden;
   z-index: 99999999;
   width: 100%;
   height: 100vh;
   pointer-events: none;
 }

</style>
